package org.dromara.Nyt7Claim.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import lombok.RequiredArgsConstructor;
import org.dromara.Nyt7Claim.domain.bo.Nyt7ClaimBo;
import org.dromara.Nyt7Claim.domain.vo.Nyt7ClaimChartVo;
import org.dromara.Nyt7Claim.service.INyt7ClaimService;
import org.dromara.common.core.domain.R;
import org.dromara.common.web.core.BaseController;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/Nyt7Claim/Nyt7ClaimChart")
public class Nyt7ClaimChartController extends BaseController {

    private final INyt7ClaimService nyt7ClaimService;

    /**
     * 查询保险理赔列表用于图表展示
     */

    @GetMapping("/chart")
    public R<List<Nyt7ClaimChartVo>> chart(Nyt7ClaimBo bo) {
        return R.ok(nyt7ClaimService.chart(bo));
    }
}
